package com.youlu.campus.entity.VO.req;

import com.youlu.campus.entity.CaTemplateStamp;
import com.youlu.campus.entity.CaTemplateTime;
import com.youlu.campus.entity.CaTemplateUniversityUserName;
import com.youlu.campus.entity.PaperCaTemplateInfo;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CreateCatemplateVO {

    private String id;

    /**
     * 电子证书模版名称
     */
    @NotBlank(message = "证书模版名称不能位空")
    private String caName;

    @NotNull(message = "证书编号不能为空")
    @Valid
    private CaTemplateCertNo certificateNo;

    //@NotNull(message = "学校不能为空")
    //@Valid
    private CaTemplateUniversityVO university;
   // @NotNull(message = "姓名不能为空")
   // @Valid
    private CaTemplateUserNameVO userName;

    private CaTemplateTime caTime;

    /**
     * 电子张图片
     */
    private CaTemplateStamp stamp;

    /**
     * 背景图片
     */
    @NotNull(message = "背景图片不能位空")
    @Valid
    private CaBackgroundPicVO backgroundPic;

    /**
     * 姓名+学校
     */
    private CaTemplateUniversityUserName caTemplateUniversityUserName;


    /**
     * 纸质证书
     */
    private PaperCaTemplateInfo paperCaTemplateInfo;
}
